package com.ta.gulimall.order.feign;

import com.ta.gulimall.common.utils.system.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 根据skuId集合查询商品积分信息
     * @param skuIds
     * @return
     */
    @PostMapping("/coupon/spubounds/listSpuBoundBySkuIds")
    public R listSpuBoundBySkuIds(@RequestBody List<Long> skuIds);
}
